package com.woniu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.woniu.pojo.Receiver;
import com.woniu.mapper.ReceiverMapper;
import com.woniu.service.IReceiverService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xie
 * @since 2022-10-12
 */
@Service
public class ReceiverServiceImpl extends ServiceImpl<ReceiverMapper, Receiver> implements IReceiverService {

    @Autowired
    private ReceiverMapper mapper;

    @Override
    public List<Receiver> queryByMemberId(String memberId){
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("member_id",memberId);
        return mapper.selectList(wrapper);
    }
}
